package com.smbms.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.smbms.pojo.Bill;
import com.smbms.pojo.Provider;

public interface BillMapper {
	public List<Bill> searchBill(Bill bill);
	public List<Bill> searchBillByMap(Map<String, String> map);
	public List<Bill> searchBycondition();
	public List<Bill> searchPro(@Param("productName") String productName,
								@Param("isPayment") int isPayment);
	public List<Provider> searchProBill(@Param("id") int id);
	public List<Bill> searchByB(
									@Param("productName") String productName,
									@Param("providerId") Integer providerId,
									@Param("isPayment") Integer isPayment);
	
	public List<Bill> searchByForeachBill(List<Integer> providerId);
	public List<Bill> searchByForeachBillMap(Map<String, Object> maps);
	
	public List<Bill> searchByPages(@Param("totalPrice") Integer totalPrice,
									@Param("index") Integer index,
									@Param("pageSize") Integer pageSize);
}
